package luj.tool.jnproxyan.proxy.stats.http.history.state;

import java.time.Instant;

public class HttpHistoryItem {

  public HttpHistoryItem(Long itemId, Long socksId, String host, int port, Instant startTime) {
    _itemId = itemId;
    _socksId = socksId;
    _host = host;
    _port = port;
    _startTime = startTime;
  }

  public String getUri() {
    return _uri;
  }

  public void setUri(String uri) {
    _uri = uri;
  }

  public int getBytesProxy2s() {
    return _bytesProxy2s;
  }

  public void setBytesProxy2s(int bytesProxy2s) {
    _bytesProxy2s = bytesProxy2s;
  }

  public int getBytesServer2p() {
    return _bytesServer2p;
  }

  public void setBytesServer2p(int bytesServer2p) {
    _bytesServer2p = bytesServer2p;
  }

  public Long getItemId() {
    return _itemId;
  }

  public Long getSocksId() {
    return _socksId;
  }

  public String getHost() {
    return _host;
  }

  public int getPort() {
    return _port;
  }

  private String _uri;
  private int _bytesProxy2s;
  private int _bytesServer2p;

  private final Long _itemId;
  private final Long _socksId;

  private final String _host;
  private final int _port;

  private final Instant _startTime;
}
